package com.larry.resend.tais;

import com.larry.resend.common.CommonSender;
import com.larry.resend.tais.MessageType;

public class TaisEdiResender {

	private final String MESSAGE_TYPE = MessageType.SHIP.toString();

	private CommonSender processor;

	public static void main(String[] args) throws Exception {
		TaisEdiResender resender = new TaisEdiResender();
		String[] list = { "TP-10461121" };
		for (String orderNum : list) {
			resender.process(orderNum);
		}
	}

	public void process(String orderNum) throws Exception {
		processor = MessageType.valueOf(MESSAGE_TYPE).getProcessor();
		processor.process(orderNum);
	}
}
